
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/login',
      component: () => import( /* webpackChunkName: "login" */ '../components/page/Login.vue'),
      meta: {
        title: '登录'
      }
    },
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/',
      component: () => import( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
      meta: {
        title: '自述文件'
      },
      children: [{
          path: 'dashboard',
          component: () => import( /* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
          meta: {
            title: '系统首页'
          }
        },
        {
          path: '/order',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/OrderTable.vue'),
          meta: {
            title: '订单管理'
          },
        },
        {
          path: '/fastigium',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/Fastigium.vue'),
          meta: {
            title: '高峰期设置'
          },
        },
        {
          path: '/coupon',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/CouponTable.vue'),
          meta: {
            title: '优惠券'
          },
        },
        {
          path: '/advertise',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/AdvertiseTable.vue'),
          meta: {
            title: '广告管理'
          },
        },
        {
          path: '/Statistics',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/Statistics.vue'),
          meta: {
            title: '营业统计'
          },
        },
        {
          path: '/riderCheck',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/RiderCheck.vue'),
          meta: {
            title: '派送员审核'
          },
        },
        {
          path: '/riderTable',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/RiderTable.vue'),
          meta: {
            title: '派送员管理'
          },
        },
        {
          path: '/goodsTable',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/GoodsTable.vue'),
          meta: {
            title: '商品管理'
          },
        },
        {
          path: '/typeTable',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/TypeTable.vue'),
          meta: {
            title: '类型管理'
          },
        },
        {
          path: '/killTable',
          component: () => import( /* webpackChunkName: "markdown" */ '../components/page/KillTable.vue'),
          meta: {
            title: '秒杀商品'
          },
        },
        {
          path: '/message',
          component: () => import( /* webpackChunkName: "tabs" */ '../components/page/Tabs.vue'),
          meta: {
            title: '消息通知'
          }
        },
        {
          path: '/404',
          component: () => import( /* webpackChunkName: "404" */ '../components/page/404.vue'),
          meta: {
            title: '404'
          }
        },
        {
          path: '/403',
          component: () => import( /* webpackChunkName: "403" */ '../components/page/403.vue'),
          meta: {
            title: '403'
          }
        },
      ]
    },

    {
      path: '*',
      redirect: '/404'
    }
  ]

});
